package com.lgl.scsheader.sameCityManage.controller;

import com.lgl.scsapi.system.model.PageData;
import com.lgl.scsheader.base.controller.BaseController;
import com.lgl.scsheader.sameCityManage.service.SameCityOrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 同城订单
 */

@RestController
@RequestMapping(value="/sameCityOrder")
public class SameCityOrderController extends BaseController{
	@Resource(name="sameCityOrderService")
	private SameCityOrderService sameCityOrderService;
	
	//通过条件获取城市集合
	@RequestMapping(value="listSameCityOrder")
	public Object listSameCityOrder() {
		PageData pd = this.getPageData();
		int pageNo = Integer.parseInt(pd.remove("page").toString()),
		pageSize = Integer.parseInt(pd.remove("rows").toString());
		return sameCityOrderService.pageServiceOrder(pd,pageNo,pageSize);
	}

}